<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

	<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
	<link href="<?php bloginfo('template_url'); ?>/style.css" rel="stylesheet" type="text/css" />  
	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/mediabox.css" type="text/css" media="screen" />
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/jquery-1.3.2.js"></script>
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/functions.js"></script>
<!--
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/imagelink.js"></script>
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/mootools.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/mediabox68.js"></script>
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/swfobject.js"></script>
    -->
    <!--[if IE]><link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/ie-style.css" type="text/css" media="screen"></link><![endif]-->

	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
	<?php wp_head(); ?>
</head>

<body>
	<div id="wrapper">
    	<div id="head_content">
        <div id="menu">
		<!--	<a href="<?php bloginfo('url'); ?>/"><span class="menu-items"><h3>Home</h3>Take me back to the home page</span></a>
            -->
			<?php
            $pages = wp_list_pages('exclude=12&sort_column=menu_order&depth=1&title_li=&echo=0');
            $pages = preg_replace('/(<a[^>]*>)/','$1<span class="menu-items"><h3>',$pages);
            $pages = str_replace('</a>', '</h3>Vai alla sezione</span></a>', $pages);
            echo $pages;
            ?>          

            <span class="search"><h3>Search</h3><?php include (TEMPLATEPATH . '/searchform.php'); ?></span>
        </div>            
		</div>
<!-- end header -->